package com.hrt.web.address.city.dao.impl;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.hrt.base.BaseDaoImpl;
import com.hrt.bean.City;
import com.hrt.web.address.city.dao.CityDaoWeb;
@Repository
public class CityDaoImplWeb extends BaseDaoImpl<City> implements CityDaoWeb{
	@SuppressWarnings("unchecked")
	@Override
	public List<City> getByProvinceCode(String provincecode) {
		String hql = "select city from City city where city.provincecode='"+provincecode+"' and city.isdelete=0";
		return getHibernateTemplate().find(hql);
	}


}
